package com.jokey.vue.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jokey.vue.dto.HrRoleUpdateReq;
import com.jokey.vue.dto.PasswordUpdateReq;
import com.jokey.vue.model.Hr;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2021/11/26 15:14
 * @version: v1.0.0
 */
public interface HrService extends IService<Hr>, UserDetailsService {

    /**
     * 修改密码
     *
     * @param password
     * @return
     */
    boolean updateHrPassword(PasswordUpdateReq password);

    /**
     * 获取符合条件的hr数据
     *
     * @param keywords
     * @return
     */
    List<Hr> getAllHrs(String keywords);

    /**
     * 修改用户角色
     *
     * @param req
     * @return
     */
    boolean updateHrRole(HrRoleUpdateReq req);
}
